import {
    createApp
} from 'vue'
import './assets/theme.css'
import 'normalize.css'
import './assets/main.css'
import 'vant/lib/index.css'
import App from './App.vue'
import {
    Button,
    CellGroup,
    Field,
    Form,
    Image,
    Tabbar,
    TabbarItem,
    Swipe,
    SwipeItem,
    PullRefresh,
    Icon,
    Loading,
    Skeleton,
    Sidebar,
    SidebarItem,
    Grid,
    GridItem,
    NavBar,
    ActionBar,
    ActionBarIcon,
    ActionBarButton,
    Card,
    SwipeCell,
    SubmitBar,
    Checkbox,
    ImagePreview,
    DropdownMenu,
    DropdownItem,
    Switch,
    Search,
    Cell,
} from 'vant';
import {
    createPinia
} from 'pinia';
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate';
import router from './router';


const pinia = createPinia();
// 持久化插件配置
pinia.use(piniaPluginPersistedstate);
const app = createApp(App);
app.use(Swipe)
app.use(SwipeItem)
app.use(PullRefresh)
app.use(Button)
app.use(Form);
app.use(Field);
app.use(CellGroup);
app.use(Tabbar)
app.use(TabbarItem)
app.use(Image)
app.use(pinia);
app.use(router)
app.use(Icon)
app.use(Loading)
app.use(Skeleton)
app.use(Sidebar)
app.use(SidebarItem)
app.use(Grid)
app.use(GridItem)
app.use(NavBar)
app.use(ActionBar)
app.use(ActionBarIcon)
app.use(ActionBarButton)
app.use(Card)
app.use(SwipeCell)
app.use(SubmitBar)
app.use(Checkbox)
app.use(ImagePreview)
app.use(DropdownItem)
app.use(DropdownMenu)
app.use(Switch)
app.use(Search)
app.use(Cell)
app.mount('#app')